package net.sourceforge.peers.sip.transport;

import net.sourceforge.peers.sip.RFC3261;
import net.sourceforge.peers.sip.syntaxencoding.SipURI;

/**
 * 请求消息体组成  method + request-uri +sipVersion+ 请求头字段 + 请求体
 * @author Mr.Yan
 *
 */
public class SipRequest extends SipMessage {
    protected String method;
    protected SipURI requestUri;

    public SipRequest(String method, SipURI requestUri) {
        super();
        this.method = method;
        this.requestUri = requestUri;
    }
    
    @Override
    public String toString() {
            return method + ' ' + requestUri +
                ' ' + RFC3261.DEFAULT_SIP_VERSION + RFC3261.CRLF +
                super.toString();
    }


    public String getMethod() {
        return method;
    }

    public SipURI getRequestUri() {
        return requestUri;
    }
    
}
